@extends("layouts.app",['categories'=>get_categoires_all()])

@section('title','消息通知')

@section('content')

    <div class="row">
        <div class="col-md-10 offset-md-1">
            <div class="card">

                <div class="card-header text-center fs-5 bg-transparent">
                    <i class="fa-solid fa-inbox"></i>
                    我的消息
                </div>
                <div class="card-body">
                    @if(count($notifications))
                        <ul class="list-group list-group-flush">
                            @foreach($notifications as $notification)
                                <li class="list-group-item d-flex">
                                    {{--场景：帖子评论--}}
                                    @include('notifications.types._'.Str::snake(class_basename($notification->type)),['data'=>$notification])
                                </li>
                            @endforeach
                        </ul>
                        @include('utils._pages',['data'=>$notifications])
                    @else
                        @include("utils._nodata_topic",['info'=>'暂无任何消息~'])
                    @endif
                </div>
            </div>

        </div>

    </div>

@stop
